package pers.cz.orm.dao;

import pers.cz.common.connect.Connection;

import java.util.List;
import java.util.Map;

/**
 * @program: Jef-orm
 * @description: 执行引擎接口
 * @author: Cheng Zhi
 * @create: 2023-09-02 16:34
 **/
public interface SqlEngine {

    public <T> T singleExecuteQuery(String sql, Class<T> resultType);
    public <T> List<T> executeQuery(String sql, Class<T> resultType, Map<Integer, Object> params);
    public int execute(String sql, Map<Integer, Object> params);
    public void batch(String sql, List<Map<Integer, Object>> lists);
    public void close();

}
